import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/tabbars/index'
import register from '@/components/user/register'
import login from '@/components/user/login'
import change from '@/components/tabbars/change'
import myInfo from '@/components/tabbars/myInfo'
import change_record from '@/components/others/change_record'
import all_record from '@/components/others/all_record'
import test from '@/components/others/test'
import to_be_confirmed from '@/components/others/alert'
import edit_info from '@/components/others/edit_info'
import myapply from '@/components/others/myapply'
import othersApply from '@/components/others/othersApply'
import wantTochange from '@/components/others/wantTochange'

Vue.use(Router)

export default new Router({
    routes: [
        { path: '/', name: 'index', component: index },
        { path: '/index', name: 'index', component: index },
        { path: '/login', name: 'login', component: login },
        { path: '/register', name: 'register', component: register },
        { path: '/change', name: 'change', component: change },
        { path: '/myinfo', name: 'myInfo', component: myInfo },
        { path: '/change_record', name: 'change_record', component: change_record },
        { path: '/all_record', name: 'all_record', component: all_record },
        { path: '/test', name: 'test', component: test },
        { path: '/to_be_confirmed', name: 'alert', component: to_be_confirmed },
        { path: '/editinfo', name: 'editinfo', component: edit_info },
        { path: '/myapply', name: 'myapply', component: myapply },
        { path: '/othersApply', name: 'othersApply', component: othersApply },
        { path: '/want', name: 'wantTochange', component: wantTochange },
    ],
    linkActiveClass: 'mui-active' //覆盖默认的路由高亮的类
})